var category = [];//收入x轴
var barData = [];//收入y轴
var category1 = [];//支出x轴
var barData1 = [];//支出y轴
var address, year;
var result = {};
var result1 = {};//支出json
var url = location.search; //获取url中"?"符后的字串
if (url.indexOf("?") != -1) {
    address = decodeURI(url.substr(1).split("=")[1].split("?")[0]);
    year = decodeURI(url.substr(1).split("=")[2]);
}

if (address == "杭州") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "宁波") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }

} else if (address == "金华") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }

} else if (address == "台州") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }

} else if (address == "丽水") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }


} else if (address == "温州") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }

} else if (address == "海曙") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "镇海") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "江北") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }

} else if (address == "北仑") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "鄞州") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "象山") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "奉化") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "慈溪") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "余姚") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
} else if (address == "宁海") {
    result = {
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    };
    result1={
        "国内增值税": 1154495,
        "改征增值税": 617787,
        "营业税	": 1696715,
        "企业所得税": 231081,
        "个人所得税": 393625,
        "城市维护建设税": 16652,
        "房产税": 250323,
        "城镇土地使用税": 123354,
        "土地增值税": 29562,
        "耕地占用税": 544823,
        "契税": 1587853,
        "其他税收": 3887608
    }
}


for (var key in result) {
    category.push(key);
    barData.push(result[key]);
}
for (var key in result1) {
    category1.push(key);
    barData1.push(result[key]);
}